<include file="__PUBLIC__/_header"/>
<body>
<div class="navbar navbar-default" id="navbar">
    <script type="text/javascript">
        try {
            ace.settings.check('navbar', 'fixed')
        } catch (e) {
        }
    </script>
    <include file="__PUBLIC__/_header_title"/><!-- /.container -->
</div>
<div class="main-container" id="main-container">
    <script type="text/javascript">
        try {
            ace.settings.check('main-container', 'fixed')
        } catch (e) {
        }
    </script>
    <div class="main-container-inner">
        <a class="menu-toggler" id="menu-toggler" href="#">
            <span class="menu-text"></span>
        </a>
        <div class="sidebar" id="sidebar">
            <script type="text/javascript">
                try {
                    ace.settings.check('sidebar', 'fixed')
                } catch (e) {
                }
            </script>
            <include file="__PUBLIC__/_nav"/>
            <div class="sidebar-collapse" id="sidebar-collapse">
                <i class="icon-double-angle-left" data-icon1="icon-double-angle-left"
                   data-icon2="icon-double-angle-right"></i>
            </div>
            <script type="text/javascript">
                try {
                    ace.settings.check('sidebar', 'collapsed')
                } catch (e) {
                }
            </script>
        </div>
        <div class="main-content">
            <div class="breadcrumbs" id="breadcrumbs">
                <script type="text/javascript">
                    try {
                        ace.settings.check('breadcrumbs', 'fixed')
                    } catch (e) {

                    }
                </script>

                <ul class="breadcrumb">
                    <li>
                        <i class="icon-home home-icon"></i>
                        <a href="{:Controller::_createUrl('index/index')}">首页</a>
                    </li>

                    <li class="active"> 促销管理</li>
                    <li class="active"> 分类设置</li>
                </ul><!-- .breadcrumb -->
            </div>
            <div class="page-content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="tabbable">
                            <div class="tab-content no-border padding-24">
                                <div id="faq-tab-1" class="tab-pane fade in active">
                                    <div id="faq-list-1" class="panel-group accordion-style1 accordion-style2">
                                        <div class="panel panel-default">
                                            <table id="sample-table-1"
                                                   class="table table-striped table-bordered table-hover">
                                                <thead>
                                                <tr>
                                                    <th>分类编号</th>
                                                    <th>标题</th>
                                                    <th>操作</th>
                                                </tr>
                                                </thead>
                                                <tbody>
                                                <volist name="list" id="vo">
                                                    <tr>
                                                        <td style="vertical-align: middle;">{$vo.id}</td>
                                                        <td style="vertical-align: middle;">{$vo.title}</td>
                                                        <td style="vertical-align: middle;">
                                                            <div class="visible-md visible-lg hidden-sm hidden-xs btn-group">
                                                                <a onclick="return confirm('确认删除吗？');" href="{:Controller::_createUrl('promotion/deleteKind',array('id'=>$vo['id']))}">删除</a>
                                                            </div>
                                                        </td>
                                                    </tr>
                                                </volist>
                                                </tbody>
                                                <tfoot>
                                                <tr>
                                                    <td colspan="3">
                                                        <a class="dialogBtn" href="{:Controller::_createUrl('promotion/addKind')}" class="tooltip-success" data-rel="tooltip" title="Edit">
                                                            <span>
                                                                <i class="icon-plus bigger-120"></i>
                                                            </span>
                                                            添加分类
                                                        </a>
                                                    </td>
                                                </tr>
                                                </tfoot>
                                            </table>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <script type="text/javascript">
                                var $path_base = "/";//this will be used in gritter alerts containing images
                            </script>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<style>
    #dtree_div input[type="checkbox"] {
        margin: 10px 0 0;
        margin-top: 1px \9;
        line-height: normal;
    }

    .tags_ {
        color: #0a6999;
        cursor: pointer
    }

    .btn_tag {
        padding: 4px 12px !important;
    }
</style>
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
    <i class="icon-double-angle-up icon-only bigger-110"></i>
</a>
<input type="hidden" id="url_tag" value="{:Controller::_createUrl('user/getTagList')}">
<input type="hidden" id="edit_real_name_url" value="{:Controller::_createUrl('user/editRealName')}">
<link rel="stylesheet" type="text/css" href="__APP_SKIN__css/Popup.css"/>
<link rel="stylesheet" href="__APP_SKIN__css/dtree.css"/>
<input type="hidden" id="dir_img" value=>
<link href="__SKIN__/js/colorbox/colorbox.css" rel="stylesheet" type="text/css">
<script src="__SKIN__/js/colorbox/colorbox.js" type="text/javascript"></script>
</body>
<script>
    $(document).ready(function(){

        $(".dialogBtn").colorbox({iframe:true, width:"450px", height:"350px"});

    })
</script>
</html>
